/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package afroschool.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author AUTRES
 */
@Entity
@Table(name = "sessionexamen")
@NamedQueries({@NamedQuery(name = "Sessionexamen.findByIdSession", query = "SELECT s FROM Sessionexamen s WHERE s.idSession = :idSession"), @NamedQuery(name = "Sessionexamen.findBySesidSession", query = "SELECT s FROM Sessionexamen s WHERE s.sesidSession = :sesidSession"), @NamedQuery(name = "Sessionexamen.findByCodeannee", query = "SELECT s FROM Sessionexamen s WHERE s.codeannee = :codeannee"), @NamedQuery(name = "Sessionexamen.findByType", query = "SELECT s FROM Sessionexamen s WHERE s.type = :type"), @NamedQuery(name = "Sessionexamen.findByDescription", query = "SELECT s FROM Sessionexamen s WHERE s.description = :description")})
public class Sessionexamen implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "idSession", nullable = false)
    private Integer idSession;
    @Column(name = "Ses_idSession")
    private Integer sesidSession;
    @Column(name = "codeannee")
    private String codeannee;
    @Column(name = "type")
    private String type;
    @Column(name = "description")
    private String description;

    public Sessionexamen() {
    }

    public Sessionexamen(Integer idSession) {
        this.idSession = idSession;
    }

    public Integer getIdSession() {
        return idSession;
    }

    public void setIdSession(Integer idSession) {
        this.idSession = idSession;
    }

    public Integer getSesidSession() {
        return sesidSession;
    }

    public void setSesidSession(Integer sesidSession) {
        this.sesidSession = sesidSession;
    }

    public String getCodeannee() {
        return codeannee;
    }

    public void setCodeannee(String codeannee) {
        this.codeannee = codeannee;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idSession != null ? idSession.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Sessionexamen)) {
            return false;
        }
        Sessionexamen other = (Sessionexamen) object;
        if ((this.idSession == null && other.idSession != null) || (this.idSession != null && !this.idSession.equals(other.idSession))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "afroschool.beans.Sessionexamen[idSession=" + idSession + "]";
    }

}
